<script type="text/javascript">

    //AJAX
    function xmlhttpPost(strURL) {
        var xmlHttpReq = false;
        var self = this;
        // Mozilla/Safari
        if (window.XMLHttpRequest) {
            self.xmlHttpReq = new XMLHttpRequest();
        }
        // IE
        else if (window.ActiveXObject) {
            self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
        }
        self.xmlHttpReq.open('POST', strURL, true);
        self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        self.xmlHttpReq.onreadystatechange = function() {
            if (self.xmlHttpReq.readyState == 1) {
                atualizarPagina("<center>Avaliando ...</center>");
            }
            else if (self.xmlHttpReq.readyState == 4) {
                atualizarPagina(self.xmlHttpReq.responseText);
                numeroChequeConta("");
                xmlhttpPostTransferencia('cadMaloteTransferencia.jsp');
            }
        }
        var qstr = 'hdnMalote=';
        self.xmlHttpReq.send(qstr);
    }
    function atualizarPagina(str) {
        document.getElementById("reserva").innerHTML = str;
    }
</script>
<!-- box begin -->
<div class="box maxheight" id="reserva">
    <div class="inner">
        <h3>Rserva:</h3>
        <form action="" id="reservation-form">
            <fieldset>
                <div class="field">
                    <label>Entrada :</label>
                    <select class="select1">
                        <option>30</option>
                    </select><select class="select2">
                    <option>April 2009</option>
                </select>
                </div>
                <div class="field">
                    <label>Saida:</label>
                    <select class="select1">
                        <option>01</option>
                    </select><select class="select2">
                    <option>May 2009</option>
                </select>
                </div>
                <div class="field">
                    Pessoa(s): &nbsp;<input type="text" value="1"/>&nbsp; &nbsp; &nbsp; &nbsp; Quarto(s):&nbsp;
                    <input type="text" value="1"/>
                </div>
                <div><span><span><input type="button"  onclick="xmlhttpPost('reserva_disponibilidade.jsp')" value="Disponibilidade"></span></span></div>
            </fieldset>
        </form>
    </div>
</div>
<!-- box end -->